package com.hl.mapper;

import com.hl.domain.Heartmark;
import com.hl.domain.SelectLike;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 25349
* @description 针对表【heartmark(心理测评表，用于存储心理测评基本信息)】的数据库操作Mapper
* @createDate 2024-09-05 19:27:43
* @Entity com.hl.domain.Heartmark
*/
public interface HeartmarkMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Heartmark record);

    int insertSelective(Heartmark record);

    Heartmark selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Heartmark record);

    int updateByPrimaryKey(Heartmark record);
//    查询所有
    List<Heartmark> selectAllHeartmark();
//    模糊查询
    List<Heartmark> selectByLike(String name);
    List<Heartmark> selectByName(@Param("name") String name,@Param("startTime") Date startTime,@Param("endTime") Date endTime);
    List<Heartmark> selectAllAnd(Integer id);
//分页查询
    List<Heartmark> selectAllByPage();

}
